<% current_id = @comment.nil? ? -1 : @comment.id %>

<div class="comment_title">
  <span class="before_h4">There are </span><h4 id="comments"><%= pluralize(@post.comments.size, 'comment') %></h4>
</div>
<ol>
  <% @post.top_comments.each do |comment| %>
  <li>
  <% show_comments(comment) do |comment, depth| %>
  <div class="commentbody" <%= comment.id == current_id ? 'id="current"' : '' %> style="margin-left: <%= depth*20 %>px;">
    <span class="commentdate"><%= comment.created_at.strftime("%Y-%m-%d %H:%M:%S") %></span>
    <cite><%= h(comment.name) %></cite> Says: <a id="<%= "reply#{comment.id}:#{comment.name}" %>" class="reply_link" href="#new_comment">reply</a>
    <div><%= simple_format(h(comment.body)) %></div>
  </div>
  <% end %>
  </li>
  <% end %>
</ol>
